import request from '@/utils/request'

export function getRedPacketDetails(params) {
  return request({
    url: '/admin/red-packet-cdkey',
    method: 'get',
    params
  })
}
export function getRedPacketDetail(id) {
  return request({
    url:`/admin/red-packet-cdkey/${id}`,
    method: 'get',
  })
}
export function updateRedPacketDetail(id,data) {
  return request({
    url: `/admin/red-packet-cdkey/${id}`,
    method: 'put',
    data
  })
}
